package services;

import domain.entities.EnrolledPatientsDAO;
import domain.entities.EnrolledPatients;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: vgonzalez
 * Date: 25/09/12
 * Time: 13:15
 * To change this template use File | Settings | File Templates.
 */
@Service
public class EnrolledPatientsService {
    EnrolledPatientsDAO dao;

    public EnrolledPatientsService() {
    }

    @Autowired
    public EnrolledPatientsService(EnrolledPatientsDAO dao) {
        this.dao = dao;
    }


    public void save(EnrolledPatients enrolledPatients){
        dao.save(enrolledPatients);
    }

    public void attachDirty(EnrolledPatients enrolledPatients){
        dao.attachDirty(enrolledPatients);
    }

}
